﻿using System;
using System.Drawing;
using System.IO;
using System.Xml.Serialization;

namespace MetaNote.Model
{
    

    [Serializable()]
    public class Settings
    {
        public string LastPicturePath { get; set; }
        public Settings()
        {
            //TODO: Stop hardcoding this default (or, ship my HD to everyone who uses MetaNote)
            this.LastPicturePath = @"C:\Users\Leon\Pictures\VS2008ImageLibrary\Actions\pngformat";

            this.MacroFileName = "macros.xml.meta";
            this.RecentFilesFileName = "recentFiles.xml";
            this.UserFilePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "MetaNote");
        }
        public string MacroFileName { get; set; }
        public string RecentFilesFileName { get; set; }
        public string MenuTreeFileName { get; set; }
        public string UserFilePath { get; set; }

        public SerializableFont SerializableFont
        {
            get
            {
                return Convert.ToSerializableFont(this.Font);
            }
            set
            {
                this.Font = Convert.ToFont(value);
            }
        }
        
        [XmlIgnore()]
        public Font Font { get; set; }
    }
}
